home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / Software / Shareware / Programare / winhex / Master Boot Record.txt < prev    next >
Text File  |  2005-05-02  |  868b  |  37 lines

  1. template "Master Boot Record"
  2.  
  3. // Template by Stefan Fleischmann
  4. // To be applied to sector 0 of a physical hard disk
  5. // or the first sector of any partition.
  6.  
  7. description "Contains partition table"
  8. applies_to disk
  9. sector-aligned
  10. requires 510 "55 AA"
  11.  
  12. begin
  13.     read-only hex 446 "Master bootstrap loader code"
  14.  
  15.     numbering 1
  16.  
  17.     {
  18.     section    "Partition Table Entry #~"
  19.     hex 1        "80 = active partition"
  20.     uint8        "Start head"
  21.     uint_flex "5,4,3,2,1,0" "Start sector"
  22.     move -4
  23.     uint_flex "7,6,15,14,13,12,11,10,9,8" "Start cylinder"
  24.     move -2
  25.     hex 1        "Partition type indicator (hex)"
  26.     uint8        "End head"
  27.     uint_flex "5,4,3,2,1,0" "End sector"
  28.     move -4
  29.     uint_flex "7,6,15,14,13,12,11,10,9,8" "End cylinder"
  30.     move -2
  31.     uint32    "Sectors preceding partition ~"
  32.     uint32    "Sectors in partition ~"
  33.     } [4]
  34.  
  35.     endsection
  36.     read-only hex 2 "Signature (55 AA)"
  37. end